package com.guoguo.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.guoguo.entity.UserTaskInfo;

/**
 * 用户任务记录接口
 * @author Qiang.Zhang
 */
public interface UserTaskInfoMapper {

    List<UserTaskInfo> selectList(@Param("userId")String userId,@Param("startTime")String startTime,@Param("endTime")String endTime,@Param("start")Integer start,@Param("size")Integer size);
    
    void addUserTaskInfo(UserTaskInfo userTaskInfo);

	/**
	 * 插入用户奖励
	 * @param userTaskInfo
	 * @return
	 */
	Integer insertTaskReward(UserTaskInfo userTaskInfo);

	/**
	 * 
	 * @param userId
	 * @param giftType
	 * @param requireType
	 * @param nowDate 
	 * @return
	 */
	Integer selectIsGetReward(@Param("userId")String userId, @Param("giftType")Integer giftType, @Param("requireType")Integer requireType,@Param("nowDate") Date nowDate);
    
}
